package com.hsh.maoduo.pojo.other.yt;

import com.hsh.maoduo.anno.Alia;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Objects;

/**
 * 圆通国际 揽收文档
 */
@Data
@NoArgsConstructor
public class YTGJCollect {
    /**
     * 圆通 快递单号
     */
    @Alia("运单号")
    private String expressNum;

    public YTGJCollect(String expressNum) {
        this.expressNum = expressNum;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof YTGJCollect)) return false;
        YTGJCollect YTGJCollect = (YTGJCollect) o;
        return Objects.equals(expressNum, YTGJCollect.expressNum);
    }

    @Override
    public int hashCode() {
        return Objects.hash(expressNum);
    }
}
